<!DOCTYPE html>
<html>

	<head>
		<!-- 声明文档使用的字符编码 -->
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<!-- 为移动设备添加 viewport -->
		<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
		<!-- 针对手持设备优化，主要是针对一些老的不识别viewport的浏览器，比如黑莓 -->
		<meta name="HandheldFriendly" content="true">
		<!-- 优先使用 IE 最新版本和 Chrome -->
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

		<title>黑图视界</title>
		<meta name="keywords" content="黑图视界">
		<meta name="description" content="黑图视界">
		<script type="text/javascript" src="../js/setFontSize.js"></script>
		<script type="text/javascript" src="../js/jquery-3.3.1.min.js"></script>
		<script type="text/javascript" src="../js/bootstrap.min.js" ></script>
		<script type="text/javascript" src="../js/layui/layui.js" ></script>
		<script type="text/javascript" src="../js/vue.js" ></script>
		<script type="text/javascript" src="../js/axios.js" ></script>
		<script type="text/javascript" src="../js/getParameter.js" ></script>
		<link rel="stylesheet" href="../js/layui/css/layui.css" media="all">
		<link rel="stylesheet" href="../css/swiper.min.css" />
		<link rel="stylesheet" href="../css/main.css" />
	</head>

	<body>
	<div id="app">
		<main>
			<section class="homeDY picBg">
				<div class="container" >
					<ul class="list" @click="editSellInfo">
						<li class="listItem bg2">
							<a >
								<div class="name">修改售票信息</div>
								<div class="en">Check and edit ticket sell info</div>
							</a>
						</li>
					</ul>
					<ul class="list" @click="editManagerPower">
						<li class="listItem bg1">
							<a >
								<div class="name">修改授权信息</div>
								<div class="en">Check and edit manager power</div>
							</a>
						</li>
					</ul>
					<ul class="list" @click="editGymInfo">
						<li class="listItem bg3">
							<a >
								<div class="name">修改活动信息</div>
								<div class="en">Check and edit activity  info</div>
							</a>
						</li>
					</ul>
				</div>
				<div id="test1" style="text-align: center"></div>
			</section>
		</main>
	</div>
		<script type="text/javascript" src="../js/jquery-3.3.1.min.js"></script>
		<script type="text/javascript" src="../js/swiper.min.js"></script>
		<script type="text/javascript" src="../js/layer/layer.js" ></script>
		<script type="text/javascript" src="../js/main.js"></script>
	</body>
<script>
	const app = new Vue({
		el:"#app",
		data:{
			amp:{}
		},
		methods:{
			editSellInfo(){
				if (this.amp.managerPower.powerlevel<2) layer.msg("对不起，目前您暂无权限")
				else location.href = "/managerclient/activityRuleDetail.html?aid="+app.amp.activity.id;
			},
			editManagerPower(){
				if (this.amp.managerPower.powerlevel<3) layer.msg("对不起，目前您暂无权限")
				else location.href = "/managerclient/ApowerList.html?aid="+app.amp.activity.id;
			},
			editGymInfo(){
				if (this.amp.managerPower.powerlevel<3) layer.msg("对不起，目前您暂无权限")
				else location.href = "/managerclient/activityDetail.html?aid="+app.amp.activity.id;
			}
		},
		created(){
			let ampid = getParameter("ampId");
			if (ampid===null) location.href = "/managerclient/myActivityList.html"
			axios.get("/manage/findAmp/"+ampid).then(function (res) {
				if (res.data===""){
					location.href = "/managerclient/myActivityList.html"
					layer.msg("查询错误")
				}
				else{
					app.amp = res.data;
				}
			})
		}
	})
</script>
</html>